<?php

declare(strict_types=1);

namespace App\Site\Model;

use Carbon\Carbon;
use Deepwell\HyperfUid\Snowflake;
use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;

/**
 * 租户信息
 * @property int $site_id 租户ID
 * @property string $app_id 应用ID
 * @property string $custom_tag 租户用户标识
 * @property string $uuid 站点标识
 * @property int $status 租户状态，200：正常，255：禁用
 * @property Carbon $created_at 创建时间
 * @property Carbon $updated_at 更新时间
 * @property Carbon $deleted_at 删除时间
 */
class SiteInfo extends MineModel
{
    use Snowflake;
    use SoftDeletes;

    protected string $primaryKey = 'site_id';
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'site_info';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['site_id', 'app_id', 'custom_tag', 'uuid', 'status', 'created_at', 'updated_at', 'deleted_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['site_id' => 'string', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at'];

}
